<template>
  <MenuNavigation />
  <div
    class="exhibits-box jy-style-height"
    id="exhibits-box-id"
    :style="{
      background: `url(${publicUrls + 'free/style9/publicStyle9Bg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="top-box">
      <div class="back-box" @click="blankHome">
        <div class="line-box"></div>
        <div class="circle-box"></div>
        <p class="back-text">返回</p>
      </div>
      <div class="title">留言板</div>
      <div class="screen-layout"></div>
    </div>

    <div class="center-box">
      <div
        class="exhibits-bg"
        :style="{
          background: `url(${publicUrls + 'free/style9/exhibitsBg.png' + '?imageView2/3/format/webp'})`,
        }"
      >
        <div class="comment-box">
          <comment text="发表评论" />
        </div>
        <div class="commentList-box">
          <div class="commentNum" v-if="total !== 0">共{{ total }}条留言</div>
          <div class="commentList-box-content">
            <ScrollBox
              color="rgba(50, 43, 37, 1)"
              v-if="scrollheight"
              :byid="4235"
              :width="scrollheight"
              :scroll-src="publicUrls + 'free/style9/scrollIcon.png'"
            >
              <template #solidBorderCon>
                <commentList
                  @emitTotal="emitTotal"
                  textColor="rgba(0, 0, 0, 0.8)"
                  bgColor="rgba(250, 238, 220, 0.6)"
                  replyColor="rgba(51, 51, 51, 0.5)"
                />
              </template>
              <template #solidBorderEx>
                <div class="solidBorder-child"></div>
              </template>
            </ScrollBox>
          </div>
        </div>
      </div>
    </div>
    <div class="content-door">
      <i class="iconfonts">&#xe6dd;</i>
      <span>永不落幕的展览与展示平台</span>
    </div>
  </div>
</template>

<script lang="ts">
export default defineComponent({
  name: 'style9',
});
</script>

<script setup lang="ts">
// @ts-nocheck
import { defineComponent, ref } from 'vue';
import comment from '../messageComponent/style9/comment.vue';
import commentList from '../messageComponent/style9/commentList.vue';
import { publicUrls } from '@/utils/minxin';
import { commonDataStore, useProjectStore } from '@/store';
const commonStore = commonDataStore();
import { useRouter, useRoute } from 'vue-router';
import ScrollBox from '../scrollBox.vue';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const router = useRouter();
const route = useRoute();
const store = useProjectStore();
const total = ref(0);
const scrollheight = ref();
let viewportHeight = window.innerHeight;
scrollheight.value = viewportHeight * 0.5333;
const blankHome = () => {
  store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
const emitTotal = (num: number) => {
  total.value = num;
};
</script>

<style lang="less" scoped>
::v-deep .unit-exbit-null-remarks-info {
  width: 100%;
  max-height: 356px !important;
}
::v-deep .unit-exbi-remarks-info-remarks {
  max-height: 356px !important;
}
.exhibits-box {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  padding: 40px 0;
}
.top-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 60px;
}
.back-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.line-box {
  flex-shrink: 0;
  width: 140px;
  height: 1px;
  background: #898172;
}
.circle-box {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #898172;
}
.back-text {
  flex-shrink: 0;
  color: #898172;
  font-family: 'SourceHanSerifCN';
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 160%; /* 28.8px */
  margin-left: 2px;
}
.title {
  flex-shrink: 0;
  color: #faeedc;
  text-align: center;
  font-family: 'SourceHanSerifCN';
  font-size: 36px;
  font-style: normal;
  font-weight: 900;
  line-height: 56px; /* 155.556% */
}
.screen-layout {
  width: 108px;
  height: 46px;
}
.comment-box {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 170px;
  // margin-top: 80px;
}
.commentList-box {
  width: 100%;
  height: 416px;
  padding: 0 110px 0 170px;
}
.commentNum {
  position: relative;
  z-index: 10;
  color: #333;
  font-family: 'PingFang SC';
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 30px;
  margin-bottom: 34px;
}
.solidBorder-child {
  width: 2px;
  height: 480px !important;
  background-color: #b1a693;
  opacity: 0.6;
  margin-bottom: 34px !important;
}
.center-box {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 60px;
  margin-top: 24px;
}
.exhibits-bg {
  width: 100%;
  height: 740px;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.content-door {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  opacity: 0.5;
  .iconfonts {
    font-size: 26px;
    color: #fff;
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: #fff;
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
::v-deep .templatestyle1-scroll-box-tumb {
  left: 18px;
}
::v-deep .solid-box-parent-p {
  top: -162px;
  img {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }
}
</style>
